home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
FishMarket 1.0
/
FishMarket v1.0.iso
/
fishies
/
301-325
/
disk_325
/
fam
/
famgrep1.c
< prev
next >
Wrap
C/C++ Source or Header
|
1992-05-06
|
320b
|
23 lines
/*
* FAMgrep1.c
* Sample Simple FAMgrep code.
* returns true if last char of name matches *p
*/
#include "exec/types.h"
#include "FAM.h"
#include "string.h"
long MyGrepFunc(struct ScanListNode * node, char * p)
{
char * q;
q = node->node.ln_Name;
q = q + strlen(q) - 1;
return *q == *p;
}